﻿@using System.Configuration
@{
	Layout = "~/Views/Shared/_IndexLayout.cshtml";
	ViewBag.Title = "Рисуем и угадываем, Крокодил онлайн в браузере";
	var debug = ConfigurationManager.AppSettings["RootUrl"] != "http://drawpi.co";
}
@section scripts{
	@Scripts.Render("~/bundles/app")
	<script type="text/javascript">
		$(function() {
			App.init({
				name: 'drawpi.co',
				baseUrl: 'Scripts/app/', @(debug ? "debug: true," : "")
				scripts: ['/signalr/hubs', '@Scripts.Url("~/bundles/script")'],
				modules: ['ui'],
				homePage: 'logon',
				success: function () {
					$('#main-loader').hide();
				}
			});
		});
	</script>
}
